import Cookies from 'js-cookie'

export const tokenKey = 'V3-Admin-Token';
export const tokenCookieKey = 'V3-Admin-Token';

export const getToken = (): string|null => {
  // return Cookies.getJSON(tokenCookieKey)
  return localStorage.getItem(tokenKey);
}

export const setToken = (token: string): void => {
  // Cookies.set(tokenCookieKey, token)
  return localStorage.setItem(tokenKey, token)
}

export const removeToken = (): void => {
  // Cookies.remove(tokenCookieKey)
  return localStorage.removeItem(tokenKey)
}
